<gm:page title="My App" authenticate="false">
  
  <script>
    function search(element) {
      var entry = google.mashups.getEntryForElement(element);
      if (entry) {
        var title = new GPath('atom:title').getValue(entry);
        window.open('http://www.google.com/search?q='+escape(title));
      }
    }
  </script>

  <gm:data id="myData">
    <feed>
      <entry>
        <id>1</id>
        <title>Google Mashup Editor</title>
      </entry>
    </feed>
  </gm:data>
  
  <gm:list data="${myData}" template="myTemplate"/>
  
  <gm:template id="myTemplate">
    <table>
      <tr repeat="true">
        <td><gm:text ref="atom:title"/></td>
        <td><button onclick="search(this)">Search</button>
      </tr>
    </table>
  </gm:template>

</gm:page>